let raw = {}

// $.map(static_options.areas, list => {
//   raw[list.code] = list.value
//   $.map(list.sublist, item => {
//     raw[item.code] = item.value
//   })
// })

const letter = [
  ['A', 'B', 'C', 'D', 'E', 'F', 'G'],
  ['H', 'I', 'J'],
  ['K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S'],
  ['T', 'U', 'V', 'W', 'X', 'Y', 'Z']
]
/*
 ["A-G",[]],
 ["H-J",[]],
 ["K-S",[]],
 ["T-Z",[]],
*/
let a_all = [
  ["", []],
  ["", []],
  ["", []],
  ["", []],
  ["", []]
]
let sortProvince = static_data.province //.sort((a, b) => a.id - b.id)

$.map(static_data.province, (item, index) => {
  raw[item.code] = item.abbr
  //let i = 0
  // let one = item.pinyin && item.pinyin.substring(0,1).toLocaleUpperCase()
  // $.map(letter, (data, index) => {
  //   if($.inArray(one, data) > -1) {
  //     i = index
  //   }
  // })
  // if(item.show && i !== '') {
  //   a_all[i][1].push(item.code.substring(0,2))
  // }
})

$.map(sortProvince, (item, index) => {
  let i = parseInt(index/8)
  a_all[i][1].push(item.code.substring(0,2))
})

$.map(static_data.city, item => {
  raw[item.code] = item.abbr
})



module.exports = {
  raw,
  "a_ll": a_all,
  // "a_ll": [
  //   ["", ["01", "02", "03", "04", "05", "06", "07", "08"]],
  //   ["", ['09', '10', '11', '12', '13', '14', '15', '16']],
  //   ["", ['17', '18', '19', '20', '21', '22', '23', '24']],
  //   ["", ['25', '26', '27', '28', '29', '30', '31', '32']],
  //   ["", ['33', '35', '36', '37']]
  // ],
  "h_col": [3, 6,],
  //"hot": [["B", ["010000",],], ["C", ["140100", "080100", "100100", "040000",],], ["D", ["161300", "070500",],], ["F", ["090100",],], ["G", ["070100",],], ["H", ["240200", "050100", "350100", "230100",],], ["J", ["180100",],], ["K", ["210100",],], ["Q", ["180500", "370000",],], ["N", ["060100", "050200", "150100",],], ["T", ["020000", "190100", "050500",],], ["S", ["030000", "070200", "160100", "120100", "061100", "230300",],], ["X", ["200100", "090600",],], ["W", ["300100", "060900", "050300",],], ["Y", ["180200", "061300",],], ["Z", ["130100",],],],
  "hot": [
    ['华北-东北 ', ['010000','020000','161300','160100','240200','140100','120100']],
    ['',[]],
    ['华东地区 ', ['030000','050100','050200','061100','060900','060100','350100']],
    ['',[]],
    ['华南-华中 ', ['070100','070200','070500','071900','230100','300100','080100']],
    ['',[]],
    ['西北-西南 ', ['040000','200100','100100','210100']]
  ],
}